import random
i = 0
a = ""
while i < 12:
    a = a + str(random.randint(0, 1))
    i += 1
lst = list(a)
b = random.randint(0, 11)
if lst[b] == "1":
    print(f"亮灯情况：{a}")
    print(f"你打到了第{b+1}个球")
    print("游戏结果：win")
else:
    print(f"亮灯情况：{a}")
    print(f"你打到了第{b+1}个球")
    print("游戏结果：loss")


